<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
    <head>
        <title th:text="${pageTitle}"></title>
        <div data-th-replace="layout/head-top"></div>
    </head>
    <body class="gray-bg">
        <div class="wrapper wrapper-content animated fadeInLeft">
            <div data-th-replace="common/functionDepict"></div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>
                                <strong th:text="${agentSettlement['agentUser']['userType']}==1?'一级':'二级'"></strong>
                                推广员【<strong th:text="${agentSettlement['agentUser']['agentUserName']}"></strong>】第 <strong th:text="${agentSettlement['cycleNum']}"></strong> 期的结算明细
                            </h5>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-4">
                                    <button type="button" class="btn btn-lg btn-outline btn-danger m-r-sm">
                                        <i class="fa fa-yen fs14" th:text="${'  ' + agentSettlement['balancePrice']}"></i>
                                    </button>结算总收益
                                </div>
                                <div class="col-sm-4">
                                    <button type="button" class="btn btn-lg btn-outline btn-danger m-r-sm">
                                        <i class="fa fa-yen fs14" th:text="${'  ' + agentSettlement['spreadPrice']}"></i>
                                    </button>推广收益
                                </div>
                                <div class="col-sm-4">
                                    <button type="button" class="btn btn-lg btn-outline btn-danger m-r-sm">
                                        <i class="fa fa-yen fs14" th:text="${'  ' + agentSettlement['rewardPrice']}"></i>
                                    </button>奖励金收益
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-12 b-fff">
                                    <h5>本期收益记录</h5>
                                    <div class="oc-ibox-content">
                                        <div class="pt10">
                                            <div class="row">
                                                <div class="col-sm-12">
                                                    <div class="pt10 text-left">
                                                        <form id="search-form" role="form" class="form-inline search-form">
                                                            <input type="hidden" id="settlementId" name="settlementId" th:value="${agentSettlement['id']}"/>
                                                            <input type="hidden" name="agentUserId" th:value="${agentSettlement['agentUserId']}"/>
                                                            <div class="form-group" style="margin-bottom: 10px">
                                                                <input placeholder=" 时间-支付开始时间" id="beginPayTime" name="beginPayTime" class="laydate-icon form-control layer-date" type="text"/>
                                                                <input placeholder=" 时间-支付结束时间" id="endPayTime" name="endPayTime" class="laydate-icon form-control layer-date" type="text"/>
                                                            </div>
                                                            <input type="hidden" id="startTime" name="startTime" th:value="${agentSettlement['startTime']}"/>
                                                            <input type="hidden" id="endTime" name="endTime" th:value="${agentSettlement['endTime']}"/>

                                                            <select class="form-control mb10" name="incomeType">
                                                                <option value="">收益类型</option>
                                                                <option value="1">推广收益</option>
                                                                <option value="2">奖励金收益</option>
                                                            </select>
                                                            <div class="form-group" style="margin-bottom: 10px">
                                                                <input placeholder="推广商品名称" name="shopData" class="form-control" type="text">
                                                            </div>
                                                            <button class="btn btn-w-m btn-primary examRecordSubmit" id="bnt1" type="button" style="margin-bottom: 10px">搜索</button>
                                                        </form>
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="agent-income-info-list-box">

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div data-th-replace="layout/head-footer"></div>
        <script type="text/javascript" th:src="@{{path}/admin/libs/plugins/layer/laydate/laydate.js?v={v}(path=${staticPath},v=${v})}"></script>
        <script type="text/javascript" th:src="@{{path}/admin/business/agent/settlement/agent-settlement-info.js?v={v}(path=${staticPath},v=${v})}"></script>
    </body>
</html>
